//-----------------------------------------------------------------------
// <copyright file="Feedback.cs" company="Simnova LLC">
//     Copyright (c) Simnova LLC. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Simnova.Collaborate.ServiceContract.DataClasses
{
    using System;
    using System.Collections.Generic;
    using System.Text;
    using System.Runtime.Serialization;

    [DataContract]
    public class Feedback
    {
        [DataMember(Name = "FeedbackId")]
        private int feedbackId;
        private int productId;
        private int userId;
        
        [DataMember(Name = "AverageRating")]
        private decimal averageRating;

        [DataMember(Name = "Ratings")]
        private int ratings;

        [DataMember(Name = "Workarounds")]
        private int workarounds;
        private string title;
        private string description;

        [DataMember(Name = "CreateDate")]
        private DateTime createDate;

        public int FeedbackId
        {
            get { return this.feedbackId; }
        }

        [DataMember]
        public int ProductId
        {
            get { return this.productId; }
            set { this.productId = value; }
        }

        [DataMember]
        public int UserId
        {
            get { return this.userId; }
            set { this.userId = value; }
        }

        public decimal AverageRating
        {
            get { return this.averageRating; }
        }

        public int Ratings
        {
            get { return this.ratings; }
        }

        public int Workarounds
        {
            get { return this.workarounds; }
        }

        [DataMember]
        public string Title
        {
            get { return this.title; }
            set { this.title = value; }
        }

        [DataMember]
        public string Description
        {
            get { return this.description; }
            set { this.description = value; }
        }
        
        public DateTime CreateDate
        {
            get { return this.createDate; }
        }
    }
}
